import {Component} from "react"
import './index.css'
class MyItem extends Component {
    
    render(){
        const {name,checked,id} = this.props
        return (
            <div className="body-check-item">
                <input defaultChecked={checked} type="checkbox" className="item"></input>
                <label className="label">{name}{id}</label>
                <span className="del">删除</span>
            </div>
        )
    }
}

export default MyItem